package com.daqian.cloud.client.demo.controller;

import com.daqian.chance.core.rest.RestResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: daqian
 * @date: 2019/6/13 17:38
 */
@RestController
@RequestMapping("demo1")
public class FallbackController {

    @GetMapping("/fallback")
    public RestResult fallback() {
        System.out.println("这里是fallback啊");
        return RestResult.fail("服务暂时不可用");
    }
}